package com.niuwa.p2p.service.sequence;

public interface ISequenceService {

	/**
	 * 根据指定的序列key获取序列值
	 * @param seqKey
	 * @return
	 * @throws Exception
	 */
	public long getNextSequenceBySeqKey(String seqKey)throws Exception;
	
	/**
	 * 根据指定的序列key获取完整编号
	 * @param seqKey
	 * @return
	 * @throws Exception
	 */
	public String getCompleteSequenceBySeqKey(String seqKey)throws Exception;
	
	
	public String getCompleteSequenceBySeqKey(String seqKey,int numberLength) throws Exception;
}
